package com.example.demo;

class Animal {
    void walk() {
        System.out.print("animal walking");
    }
}

public class Dog extends Animal {
    void bark() {
        throw new NullPointerException();
//        System.out.print("dog barking");
    }
}
